console.log('开始启动服务~~~')
var { spawn } = require('child_process');
var pathDir = __dirname + '\\run.bat'
console.log(pathDir)
var ls = spawn(pathDir);

ls.stdout.on('data', (data) => {
	console.log(ls.pid)
	console.log(`stdout: ${data}`);
});

ls.stderr.on('data', (data) => {

	console.error(`stderr: ${data}`);
});

ls.on('close', (code) => {
	console.log(`子进程退出,退出码 ${code}`);
});



console.log('启动完成')